import request from '@/utils/request'

// 查询项目创建申请列表
export function listProject_creation(query) {
  return request({
    url: '/labbase/project_creation/list',
    method: 'get',
    params: query
  })
}

// 查询项目创建申请详细
export function getProject_creation(projectFlowId) {
  return request({
    url: '/labbase/project_creation/' + projectFlowId,
    method: 'get'
  })
}

// 新增项目创建申请
export function addProject_creation(data) {
  return request({
    url: '/labbase/project_creation',
    method: 'post',
    data: data
  })
}

// 修改项目创建申请
export function updateProject_creation(data) {
  return request({
    url: '/labbase/project_creation',
    method: 'put',
    data: data
  })
}

// 删除项目创建申请
export function delProject_creation(projectFlowId) {
  return request({
    url: '/labbase/project_creation/' + projectFlowId,
    method: 'delete'
  })
}

// 导出项目创建申请
export function exportProject_creation(query) {
  return request({
    url: '/labbase/project_creation/export',
    method: 'get',
    params: query
  })
}

//提交流程
export function commitProject_creation(data) {
  return request({
    url: '/labbase/project_creation/commit',
    method: 'post',
    data: data
  })
}